<?php $form = $this->beginWidget('CActiveForm')?>
<?php echo $form->errorSummary($model) ?>

<div class="row">
    <?php echo $form->label($model, 'name')?>
    <?php echo $form->textField($model, 'name')?>
</div>
<div class="buttons">
    <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Update')?>
</div>

<?php $this->endWidget()?>